

import axios from '../utils/axios'

export function addCart(params) {
  return axios.post('/cart', params);
}

export function modifyCart(params) {
  return axios.put('/cart', params);
}

export function getCart(params) {
  return axios.get('/cart/findAll', { params });
}

export function deleteCartItem(id) {
  return axios.delete(`/cart/${id}`);
}

export function getByCartItemIds(ids) {
  return axios.get(`/cart/ids/${ids}`);
}

